function daysChart(textStr, subtextStr, dataStr, xAxisData, seriesData, unit, yAxis_max) {
    var textS = textStr;
    var subtextS = subtextStr;
    var dataS = dataStr;
    var xAxisD = xAxisData;
    var seriesD = seriesData;
    opt = {
        title : {
            text: textStr,
            subtext: subtextStr
        },
        tooltip : {
            trigger: 'axis'
        },
        legend: {
            data:[dataStr]
        },
        toolbox: {
            show : true,
            feature : {
                mark : {show: true},
                dataView : {show: false, readOnly: false},
                magicType : {show: true, type: ['line', 'bar']},
                restore : {show: true},
                saveAsImage : {show: true},
                myTool : {
                    show : true,
                    title : '自定义扩展方法',
                    icon : 'image://../asset/ico/favicon.png',
                    onclick : function (){
                        alert('myToolHandler')
                    }
                }
            }
        },
        calculable : true,
        xAxis : [
            {
                type : 'category',
                boundaryGap : false,
                data : xAxisData
            }
        ],
        yAxis : [
            {
                type : 'value',
                axisLabel : {
                    formatter: '{value} ' + unit
                },
                max : yAxis_max
            }
        ],
        series : [
            {
                name:dataStr,
                type:'line',
                data:seriesData,
                markPoint : {
                    data : [
                        {type : 'max', name: '最大值'},
                        {type : 'min', name: '最小值'}
                    ]
                },
                // markLine : {
                //     data : [
                //         {type : 'average', name: '平均值'}
                //     ]
                // }
            }
        ]
    };
    return opt;
};

